package com.example.common.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.example.common.R;
import com.example.common.model.MenuBean;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.List;

public class MenuAdapter extends BaseQuickAdapter<MenuBean, BaseViewHolder> {

    public MenuAdapter(@Nullable List<MenuBean> data) {
        super(R.layout.item_menu_text, data);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder helper, MenuBean menuBean) {
        helper.setText(R.id.tv_name, menuBean.getName());
    }
}
